<template>
  <div class="container">
  <!-- <div ref="chart" style="height: 21vh; width: 100%"></div> -->
    <div class="content-wrapper">
      <div class="header">
        <router-link class="back-link" to="/main/renshi">
          <i class="el-icon-arrow-left"></i>
          返回
        </router-link>
      </div>
      <div class="page-title">
        <h2>招聘管理表</h2>
      </div>

      <div class="forms-container">
        <div class="forms-column">
          <div class="form-group">
            <h3 class="group-title">基础表单</h3>
            <div class="form-links">
              <router-link class="form-link" to="/main/biao/mianshijl">
                <i class="el-icon-document"></i>
                面试记录表
              </router-link>
              <router-link class="form-link" to="/main/biao/zenbus">
                <i class="el-icon-document"></i>
                人员增补申请单
              </router-link>
              <router-link
                class="form-link"
                to="/main/renshi/dangan/employeeFileList"
              >
                <i class="el-icon-document"></i>
                员工入职资料表
              </router-link>
              <!-- <router-link class="form-link" to="/main/biao/zhiweishuoming">
                                <i class="el-icon-document"></i>
                                职位说明书
                            </router-link> -->
              <router-link class="form-link" to="/main/biao/zerenshu">
                <i class="el-icon-document"></i>
                岗位职责目标责任书
              </router-link>
            </div>
          </div>

          <div class="form-group">
            <h3 class="group-title">通知与评估</h3>
            <div class="form-links">
              <router-link
                class="form-link"
                to="/main/renshi/zhaoping/mianshitzs/mianshitzs"
              >
                <i class="el-icon-message"></i>
                面试通知书
              </router-link>
              <router-link
                class="form-link"
                to="/main/renshi/zhaoping/luyongtzs/luyongtzs"
              >
                <i class="el-icon-message"></i>
                录用通知书
              </router-link>
              <router-link
                class="form-link"
                to="/main/renshi/zhaoping/gongzuobxhpb/gongzuobxhpb"
              >
                <i class="el-icon-document-checked"></i>
                工作表现评核表
              </router-link>
              <router-link
                class="form-link"
                to="/main/renshi/zhaoping/yijipgb/yijipgb"
              >
                <i class="el-icon-document-checked"></i>
                一级评估输出指引表
              </router-link>
            </div>
          </div>
        </div>

        <div class="forms-column">
          <div class="form-group">
            <h3 class="group-title">培训与考核</h3>
            <div class="form-links">
              <router-link class="form-link" to="/main/biao/gsqiandao">
                <i class="el-icon-document-checked"></i>
                公司规章制度培训签到表
              </router-link>
              <router-link class="form-link" to="/main/biao/heding">
                <i class="el-icon-document-checked"></i>
                员工入职信息核定表
              </router-link>
              <router-link class="form-link" to="/main/biao/beidiao">
                <i class="el-icon-document-checked"></i>
                背景调查表
              </router-link>
            </div>
          </div>

          <div class="form-group">
            <h3 class="group-title">薪资相关</h3>
            <div class="form-links">
              <router-link class="form-link" to="/main/biao/jibenxz">
                <i class="el-icon-money"></i>
                职员基本薪资核定表
              </router-link>
            </div>
          </div>
          <div class="form-group">
            <h3 class="group-title">其他文件</h3>
            <div class="form-links">
              <router-link
                class="form-link"
                to="/main/renshi/zhaoping/sanjianquan/sanjianquan"
              >
                <i class="el-icon-document"></i>
                三级安全教育制度
              </router-link>
              <router-link class="form-link" to="/main/biao/pxqiandao">
                <i class="el-icon-document"></i>
                新员工入职培训签到表
              </router-link>
              <router-link
                class="form-link"
                to="/main/renshi/zhaoping/zhaopingxiudin"
              >
                <i class="el-icon-document"></i>
                招聘流程修订内容
              </router-link>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<!-- <script>
export default {
  mounted() {
    this.checkScrollbar();
    window.addEventListener("resize", this.checkScrollbar);
  },
  beforeDestroy() {
    window.removeEventListener("resize", this.checkScrollbar);
  },
  methods: {
    checkScrollbar() {
      const div = this.$refs.chart;
      if (document.body.scrollHeight > window.innerHeight) {
        div.style.display = "none";
      } else {
        div.style.display = "block";
      }
    },
  },
};
</script> -->
<style lang="scss" scoped>
.container {
  min-height: calc(100vh - 48px);
  background-color: antiquewhite;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header {
  margin-bottom: 24px;
  text-align: left;
  // position: fixed;
}

.back-link {
  display: inline-flex;
  align-items: left;
  color: #409eff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;

  i {
    margin-right: 4px;
  }

  &:hover {
    color: #66b1ff;
    transform: translateX(-3px);
  }
}

.content-wrapper {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  padding: 32px;
  width: 800px;
  margin: 0px auto;
}

.page-title {
  text-align: center;
  margin-bottom: 36px;

  h2 {
    display: inline-block;
    margin: 0;
    padding: 12px 24px;
    background-color: #409eff;
    color: white;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 500;
  }
}

.forms-container {
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.forms-column {
  flex: 1;
  min-width: 0;
}

.form-group {
  background-color: #f5f7fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;

  &:last-child {
    margin-bottom: 0;
  }

  .group-title {
    margin: 0 0 16px;
    color: #303133;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
  }
}

.form-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-radius: 6px;
  color: #606266;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid transparent;

  i {
    margin-right: 8px;
    font-size: 16px;
    color: #909399;
  }

  &:hover {
    color: #409eff;
    background-color: #ecf5ff;
    border-color: #d9ecff;
    transform: translateX(3px);

    i {
      color: #409eff;
    }
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .content-wrapper {
    padding: 20px;
  }

  .forms-container {
    flex-direction: column;
    gap: 24px;
  }

  .form-group {
    padding: 16px;
  }
}
</style>